<?php defined('SYSPATH') or die('No direct script access.'); ?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
	<title><?php echo $title; ?></title>
	<meta http-equiv="Content-Type" content="application/xhtml+xml; charset=utf-8" />
	
	<!-- Scripts and styles -->
	<?php 
		foreach ($scripts as $script)
			echo HTML::script($script);
		
		foreach ($styles as $style)
			echo HTML::style($style);
	?>
</head>
<body>
	<div id="wrapper">
		<div id="header">
			<div id="head">
				<h1><?php echo Kohana::$config->load('kotan.blog.title'); ?></h1>
			</div>
			<div id="menu">
				<?php
					foreach ($menu as $item)
						echo HTML::anchor($item['uri'], $item['title'], array('class' => 'menu'));
				?>
			</div>
		</div>
		<div id="content">
			<?php echo $content; ?>
		</div>
	</div>
	<div id="copycat">
		Copyright &copy; <?php echo date('Y') . '<b> ' . Kohana::$config->load('kotan.blog.title') . '</b>'; ?>. All rights reserved.<br />
		Powered by <b><?php echo HTML::anchor('http://kotan-project.org', 'Kotan 1.0'); ?></b>, 
		<b><?php echo HTML::anchor('http://kohana-framework.org', 'Kohana Framework 3.2.0'); ?></b> 
		<br />
		<?php
			echo HTML::anchor('set_lang/en-us', 'English (US)') . ', ';
			echo HTML::anchor('set_lang/ja-jp', '日本語') . ', ';
			echo HTML::anchor('set_lang/pl-pl', 'Polski');
		?>
	</div>
</body>
</html>